package com.xmler.plugin.adbrocket.ui

import com.intellij.openapi.project.Project
import com.intellij.openapi.wm.ToolWindow
import com.intellij.openapi.wm.ToolWindowFactory
import com.intellij.ui.content.ContentFactory

class AdbRocketWindowFactory : ToolWindowFactory {
     override fun createToolWindowContent(project: Project, toolWindow: ToolWindow) {
        val win = AdbRocketWindow(project, toolWindow)

        val contentFactory = ContentFactory.SERVICE.getInstance()
        val content = contentFactory.createContent(win.contentRoot, "", false)
        toolWindow.contentManager.addContent(content)
    }
}